import com.google.appengine.api.datastore.*
import static com.google.appengine.api.datastore.FetchOptions.Builder.*
 
// query the scripts stored in the datastore
// "savedscript" corresponds to the entity table containing the scripts' text
def query = new Query("comicShow")
PreparedQuery preparedQuery = datastore.prepare(query)
def entities = preparedQuery.asIterator() 
request.setAttribute 'comics' , entities

forward '/comics.gtpl'
